package com.wuyan.locationdog.ui.login


import android.os.Bundle
import androidx.activity.viewModels
import com.arcsoft.commonbase.base.BaseBindingActivity
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.BarUtils
import com.wuyan.locationdog.databinding.Login1ActivityBinding
import com.wuyan.locationdog.viewmodel.LoginViewModel

class Login1Activity : BaseBindingActivity<Login1ActivityBinding>() {


    private val mViewModel: LoginViewModel by viewModels()

    override fun initData() {
        BarUtils.transparentStatusBar(this)
        //状态栏白色
        BarUtils.setStatusBarLightMode(this, false)

        binding.apply {


            btnLogin.setOnClickListener {
                ActivityUtils.startActivity(LoginActivity::class.java)
            }
            btnRegister.setOnClickListener {
                val bundle = Bundle()
                bundle.putInt("type", 1)
                ActivityUtils.startActivity(bundle, RegisterActivity::class.java)
            }
        }


    }

    override fun observe() {
        mViewModel.loginBean.observe(this) {

        }
    }

}

